package com.yanqu.road.server.cmd.strongholdwar;

import com.yanqu.road.utils.YanQuMessageUtils;
import com.yanqu.road.pb.activity.StrongholdActivityProto;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_CROSS_STRONGHOLD_MEMBER_CONDITION_DATA_RESP, desc = "跨服查询跨服据点战成员贡献信息响应")
public class CrossStrongholdrMemberConditionDataRespCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        StrongholdActivityProto.CrossStrongholdConditionUnionMemberDataRespMsg reqMsg = StrongholdActivityProto.CrossStrongholdConditionUnionMemberDataRespMsg.parseFrom(packet.getBytes());
        YanQuMessage pbMsg = YanQuMessageUtils.buildMessage(Protocol.S_CROSS_STRONGHOLD_MEMBER_CONDITION_NOTIFY, reqMsg);
        MessageHelper.sendPacket(reqMsg.getServerId(), reqMsg.getUserId(), pbMsg);
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }
}
